package com.meitianhui.convenitenbuy.module.order.adapter;

import android.content.Context;
import android.os.CountDownTimer;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.meitianhui.convenitenbuy.R;
import com.meitianhui.convenitenbuy.module.order.model.bean.OrderInfo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by amy on 2018/1/13.
 */

public class HuiGuoOrderAdapter extends BaseQuickAdapter<OrderInfo.ListBean, BaseViewHolder> {
    private Map<String, String> mUrlMap;
    private Context mContext;
    private HashMap<String, CountDownTimer> countDownMap;
    public HuiGuoOrderAdapter(Context context, List<OrderInfo.ListBean> data, Map<String, String> urlMap) {
        super(R.layout.item_huiguo_order, data);
        mContext = context;
        mUrlMap = urlMap;
        countDownMap = new HashMap<String, CountDownTimer>();
    }


    public void setNewData(List data, Map<String, String> map) {
        setNewData(data);

        this.mUrlMap = map;
    }

    public void addData(List data, Map<String, String> map) {
        addData(data);
        mUrlMap.putAll(map);
    }
    @Override
    protected void convert(BaseViewHolder helper, OrderInfo.ListBean item) {

    }
}
